package com.exoweb.common.model.vo {
    import com.exoweb.common.model.vo.BaseVo;

    [Bindable]
    public class BaseUserVo extends BaseVo {
        public var id:String;
        public var name:String;
        public var tokens:int;
        public var authinfo:String;
        private var _balance:int;

        public function BaseUserVo(id:String=null,
                                   name:String=null,
                                   balance:Number=NaN,
                                   tokens:int=0,
                                   authinfo:String=null) {
            super();
            this.id = id;
            this.name = name;
            this.balance = int(balance);
            this.tokens = tokens;
            this.authinfo = authinfo;
        }

        public function get balance():int{
            return this._balance;
        }

        public function set balance(bal:int):void {
            this._balance = Math.floor(bal);
        }
    }
}
